package main

import (
	"go_data_structures_and_algorithms/system_class/section8/pojo/ManuallyRewritePileWinningQuestions/pojo1"
)

func main() {
	heap := pojo1.NewGreaterHeap(pojo1.DaddySortFunc)
	heap.Push(pojo1.NewCustomer(1, 2, 3))
	heap.Push(pojo1.NewCustomer(2, 4, 1))
	heap.Push(pojo1.NewCustomer(3, 2, 2))
	heap.Push(pojo1.NewCustomer(4, 1, 6))
	heap.Push(pojo1.NewCustomer(5, 5, 8))
	heap.Print()

	heap1 := pojo1.NewGreaterHeap(pojo1.CandySortFunc)
	heap1.Push(pojo1.NewCustomer(1, 2, 3))
	heap1.Push(pojo1.NewCustomer(2, 4, 1))
	heap1.Push(pojo1.NewCustomer(3, 2, 2))
	heap1.Push(pojo1.NewCustomer(4, 1, 6))
	heap1.Push(pojo1.NewCustomer(5, 5, 8))
	heap1.Print()
}
